﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ElingOA6_Admin_DSJCJ.BLL
{
    public class ICACDeptDoc
    {
        private readonly ElingOA6_Admin_DSJCJ.DAL.ICACDeptDoc dal = new ElingOA6_Admin_DSJCJ.DAL.ICACDeptDoc();
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public decimal Add(ElingOA6_Admin_DSJCJ.Model.ICACDeptDoc model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public DataSet GetPath()
        {

            return dal.GetPath();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fEntityNo"></param>
        /// <param name="fDeptNo"></param>
        /// <returns></returns>
        public bool Exists(string fEntityNo, string fDeptNo)
        {
            return dal.Exists(fEntityNo, fDeptNo);
        
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public ElingOA6_Admin_DSJCJ.Model.ICACDeptDoc GetModel(string fEntityNo, string fDeptNo)
        {

            return dal.GetModel(fEntityNo, fDeptNo);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Update(ElingOA6_Admin_DSJCJ.Model.ICACDeptDoc model)
        {
            return dal.Update(model);
        }



        /// <summary>
        /// 获得多条文件存放路径
        /// </summary>
        /// <param name="strAdCds"></param>
        /// <param name="strEntityNo"></param>
        /// <returns></returns>
        public List<string> GetSrvName(string dept, string entityNo)
        {
            return dal.GetSrvName(dept, entityNo);
        }

    }
}
